From 0137f2b67b55aef4f8939d31740c49471172614f Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Tue, 9 Jan 2007 16:49:16 +0000 Subject: [PATCH] [HVM] Remove unnecessary write barriers Using a volatile pointer saves us from the compier reordering these writes, and the processor won't let them appear out of order. Signed-off-by: Tim Deegan --- xen/arch/x86/mm/shadow/multi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c index ba4659d325..e040e60e71 100644 --- a/xen/arch/x86/mm/shadow/multi.c +++ b/xen/arch/x86/mm/shadow/multi.c @@ -851,9 +851,7 @@ static inline void safe_write_entry(void *dst, void *src) * then writing the high word before the low word. */ BUILD_BUG_ON(sizeof (shadow_l1e_t) != 2 * sizeof (unsigned long)); d[0] = 0; - wmb(); d[1] = s[1]; - wmb(); d[0] = s[0]; #else /* In 32-bit and 64-bit, sizeof(pte) == sizeof(ulong) == 1 word, -- 2.30.2